package com.run.motion.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.context.annotation.Bean;


/**
 * 评论对象 my_comment
 * 
 * @author lyq
 * @date 2022-03-26
 */
public class Comment
{

    /** 评论id */
    private Long pid;

    /** 动态id */
    private Long mid;

    /** 用户id */
    private String userId;

    /** 评论内容 */
    private String text;

    /** 用户昵称 */
    private String nickname;

    /** 用户头像 */
    private String avatar;


    public void setPid(Long pid) 
    {
        this.pid = pid;
    }

    public Long getPid() 
    {
        return pid;
    }
    public void setMid(Long mid) 
    {
        this.mid = mid;
    }

    public Long getMid() 
    {
        return mid;
    }
    public void setUserId(String userId)
    {
        this.userId = userId;
    }

    public String getUserId()
    {
        return userId;
    }
    public void setText(String text) 
    {
        this.text = text;
    }

    public String getText() 
    {
        return text;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("pid", getPid())
            .append("mid", getMid())
            .append("userId", getUserId())
            .append("text", getText())
            .append("nickname",getNickname())
            .append("avatar",getAvatar())
            .toString();
    }
}
